<script type="text/javascript" src="${base}/scripts/tool/pinyin.js"></script>
<script type="text/javascript" src="${base}/scripts/page/qyjg_content.js"></script>
<div id="qyjg_type" style="margin: 0 0 5px 25px; display: none;">
    <span>机构类型：</span>
        <span>
            <label style="margin-right: 10px;"><input type="radio" name="type" value="0" disabled="false"
                                                      id="qyjg_checked" checked="checked"
                                                      style="vertical-align: middle;">企业机构</label>
            <label><input type="radio" name="type" disabled="false" value="1" id="wls_checked"
                          style="vertical-align: middle;"
                          <#if type?exists && type == 1>checked="checked"</#if> >物流商</label>
        </span>
</div>

<div id="qyjg_content" style="display: none">
    <form id="qyjgForm" action="${base}/organ/qyjg/qyjg" method="post">
        <input name="qyjg.id" type="hidden" value="${(qyjg.id)!''}"/>
        <input type="hidden" id="qyfr_id" value="${(qyjg.qyfr.id)!}"/>
        <input type="hidden" id="qyfr_jc" value="${(qyjg.qyfr.qyjc)!}"/>

        <div class="easyui-tabs">
            <div title="基本信息">
                <table style="width:100%" class="tb tab-t">
                    <col width="20%"/>
                    <col width="30%"/>
                    <col width="17.5%"/>
                    <col width="32.5%"/>
                    <tr style="height: 10px;"/>
                    <tr>
                        <th style="color:#f45212;">全&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：</th>
                        <td><input id="qyjg_qc" name="qyjg.qc" type="text" class="easyui-validatebox input-text"
                                   required="true"
                                   validType="remote['${base}/organ/qyjg/ajax_validate?qyjgId=${(qyjg.id)!}',{'validateField':'qc','type':0},'全称重复']"
                                   value="${(qyjg.qc)!''}"/></td>
                        <th style="color:#f45212;">简&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：</th>
                        <td><input id="qyjg_jc" name="qyjg.jc" type="text" class="easyui-validatebox input-text"
                                   required="true"
                                   validType="remote['${base}/organ/qyjg/ajax_validate?qyjgId=${(qyjg.id)!}',{'validateField':'jc','type':0},'简称重复']"
                                   value="${(qyjg.jc)!''}"/></td>
                    </tr>
                    <tr>
                        <th>编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</th>
                        <input name="qyjg.bm" type="hidden" class="input-text"
                               value="${(qyjg.bm)!''}"/>
                        <td>
                    <span>
                    ${(qyjg.bm)!}
                    </span>
                        </td>
                    <#--<td><input name="qyjg.bm" type="text"style="background-color:#F8F8FF;"  readonly="readonly" class="input-text-border-zero"   value="${(qyjg.bm)!''}"/></td>-->
                        <th>企业法人：</th>
                        <td>
                            <input id="qyjg_qyfr_id" name="qyjg.qyfr.id" type="text" value="${(qyjg.qyfr.id)!''}"
                                   required="true"
                                   class="easyui-combobox input-text"
                                   validType="remote['${base}/organ/qyfr/ajax_contrary_validate',{'validateField':'qyjc'},'请选择已经录入的企业法人']"
                                   data-options="panelHeight:'100'"/>
                        </td>
                    </tr>

                    <tr>
                        <th>联 &nbsp;系&nbsp;&nbsp;人：</th>
                        <td>
                            <input id="qyjg_lxr" name="qyjg.lxr" type="text" class="input-text"
                                   value="${(qyjg.lxr)!''}"/>
                        </td>
                        <th>联系电话：</th>
                        <td><input id="qyjg_lxdh" name="qyjg.lxdh" type="text" class="input-text"
                                   value="${(qyjg.lxdh)!''}"/></td>
                    </tr>
                    <tr>
                        <th style="color:#f45212;">助&nbsp;&nbsp;记&nbsp;&nbsp;码：</th>
                        <td><input name="qyjg.zjm" type="text" class="easyui-validatebox input-text"
                                   value="${(qyjg.zjm)!''}" required="true"/></td>
                        <th>是否零售：</th>
                        <td><label><input type="checkbox" name="qyjg.sfls" value="true"
                                          <#if (qyjg.sfls)?? && qyjg.sfls==true>checked </#if>/></label></td>
                    </tr>
                    <input type="checkbox" style="display: none" name="qyjg.sfzx" value="true"
                           <#if (qyjg.sfzx)?exists && !qyjg.sfzx>checked </#if>/>
                <#--<input name="qyjg.jyms.gyhsdm" type="text" style="display: none" class="input-text"-->
                <#--value="${(qyjg.jyms.gyhsdm)!''}"/>-->
                <#--<input name="qyjg.jyms.xshsdm" type="text" style="display: none" class="input-text"-->
                <#--value="${(qyjg.jyms.xshsdm)!''}"/>-->
                <#--<input name="qyjg.jyms.fklx.id" type="text" style="display: none" value="${(qyjg.jyms.fklx.id)!''}"-->
                <#--class="input-text"/>-->
                    <tr>
                        <th>组织机构号：</th>
                        <td><input id="qyjg_zzjgh" name="qyjg.zzjgh" type="text" class="easyui-validatebox input-text"
                                   validType="remote['${base}/organ/qyjg/ajax_validate?qyjgId=${(qyjg.id)!}',{'validateField':'zzjgh','type':0},'组织机构号重复']"
                                   value="${(qyjg.zzjgh)!''}"/>
                        </td>
                        <th>纳&nbsp;税&nbsp;&nbsp;号：</th>
                        <td>
                        <#--<input id="qyjg_nsh" name="qyjg.nsh" type="text"  class="input-text" value="${(qyjg.nsh)!''}" />-->
                            <input id="qyjg_nsh" name="qyjg.nsh" type="text" class="easyui-validatebox input-text"
                                   validType="remote['${base}/organ/qyjg/ajax_validate?qyjgId=${(qyjg.id)!}',{'validateField':'nsh','type':0},'纳税号重复']"
                                   value="${(qyjg.nsh)!''}"/>
                        </td>
                    </tr>
                    <tr>
                        <th>营业执照注册号：</th>
                        <td>
                            <input id="qyjg_qyfrh" name="qyjg.qyfrh" type="text" class="easyui-validatebox input-text"
                                   validType="remote['${base}/organ/qyjg/ajax_validate?qyjgId=${(qyjg.id)!}',{'validateField':'qyfrh','type':0},'营业执照注册号重复']"
                                   value="${(qyjg.qyfrh)!''}"/>
                        </td>
                        <th>联系手机：</th>
                        <td>
                            <input name="qyjg.lxsj" type="text" class="input-text"/>
                        </td>
                    </tr>
                    <#--<tr>-->
                        <#--<th>保证金使用方式：</th>-->
                        <#--<td colspan="3">-->
                            <#--<label><input name="qyjg.bzjfs" type="radio" value="0" checked="checked"-->
                                          <#--style="vertical-align: middle;"/>一次性使用</label> &nbsp;&nbsp;&nbsp;&nbsp;-->
                            <#--<label><input name="qyjg.bzjfs" type="radio" value="1"-->
                                          <#--<#if (qyjg.bzjfs)?? && qyjg.bzjfs==1>checked</#if>-->
                                          <#--style="vertical-align: middle;"/>按比例使用</label> &nbsp;&nbsp;&nbsp;&nbsp;-->
                            <#--<label><input name="qyjg.bzjfs" type="radio" value="2"-->
                                          <#--<#if (qyjg.bzjfs)?? && qyjg.bzjfs==2>checked</#if>-->
                                          <#--style="vertical-align: middle;"/>无保证金</label>&nbsp;&nbsp;&nbsp;&nbsp;-->
                    <#--</tr>-->
                    <tr>
                        <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
                        <td colspan="3">
                            <textarea name="qyjg.bz" rows="3" class="textarea"
                                      style="width:95.5%;height: 110px;">${(qyjg.bz)!''}</textarea>
                        </td>
                    </tr>
                </table>
            </div>
            <div title="部门维护">
                <div id="nbjg_tool" style="height:auto">
                    <ul class="niu">
                        <li><a href="javascript:void(0)" id="nbjg_add" plain="true">增加</a></li>
                        <li><a href="javascript:void(0)" id="nbjg_del" class="del" plain="true">删除</a></li>
                        <li><a href="javascript:void(0)" id="nbjg_cancel" class="rep" plain="true">取消</a></li>
                    </ul>
                </div>
                <table style="width:100% " class="tb tab-t">
                    <col width="17.5%"/>
                    <col width="32.5%"/>
                    <col width="17.5%"/>
                    <col width="32.5%"/>
                    <tr>
                        <td colspan=4>
                            <div>
                                <table id="nbjg_grid" style="width:570px;height:266.5px;"
                                       url="${base}/organ/qyjg/nbjgList?qyjgId=${(qyjg.id)!''}" singleSelect="true">
                                    <thead>
                                    <tr>
                                        <th name="nbjg.id" field="id" editor="numberbox" hidden="true">Id</th>
                                        <th name="nbjg.qc" field="qc" width="120"
                                            editor="{type:'validatebox',options:{required:true}}">全称
                                        </th>
                                        <th name="nbjg.jc" field="jc" width="120" editor="text">简称</th>
                                        <th name="nbjg.zjm" field="zjm" width="120" editor="text">助记码</th>
                                        <th name="nbjg.bz" field="bz" width="185" editor="text">备注</th>
                                    </tr>
                                    </thead>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</div>

<div id="wls_content" style="display: none">
    <form id="wlsForm" action="${base}/organ/qyjg/add_qyjg" method="post">
        <input name="wls.id" type="hidden" value="${(wls.id)!''}"/>
        <table style="width:100%" class="tb tab-t">
            <col width="13%"/>
            <col width="37%"/>
            <col width="17.5%"/>
            <col width="32.5%"/>
            <tr>
                <th style="color:#f45212;">全&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：</th>
                <td><input name="wls.qc" type="text" class="easyui-validatebox input-text" required="true"
                           validType="remote['${base}/organ/qyjg/ajax_validate?qyjgId=${(wls.id)!}',{'validateField':'qc','type':1},'全称重复']"
                           value="${(wls.qc)!''}"/></td>
                <th style="color:#f45212;">简&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：</th>
                <td><input name="wls.jc" type="text" class="easyui-validatebox input-text" required="true"
                           validType="remote['${base}/organ/qyjg/ajax_validate?qyjgId=${(wls.id)!}',{'validateField':'jc','type':1},'简称重复']"
                           value="${(wls.jc)!''}"/></td>
            </tr>
            <tr>
                <th style="color:#f45212;">编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</th>
                <td>
                <#--    <input name="wls.bm" pe="text" class="easyui-validatebox input-text" style="background-color:#F8F8FF;"  readonly="readonly"
                          value="${(wls.bm)!''}"/>-->
                    <span>
                    ${(wls.bm)!}
                    </span>
                </td>
                <th>助&nbsp;记&nbsp;码：</th>
                <td><input name="wls.zjm" type="text" class="input-text required=" true"
                    value="${(wls.zjm)!''}"/>
                </td>
            </tr>
            <tr>
                <th>企业法人：</th>
                <td>
                    <input id="wls_qyfr_id" name="wls.qyfr.id" type="text" value="${(wls.qyfr.id)!''}"
                           class="easyui-combobox input-text"
                           validType="remote['${base}/organ/qyfr/ajax_contrary_validate',{'validateField':'qyjc'},'请选择已经录入的企业法人']"
                           data-options="panelHeight:'100'"/>
                </td>
                <th>联&nbsp;系&nbsp;人：</th>
                <td>
                    <input name="wls.lxr" type="text" class="input-text" value="${(wls.lxr)!''}"/>
                </td>
            </tr>
            <tr>
                <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
                <td colspan="3">
                    <textarea name="wls.bz" rows="3" class="textarea"
                              style="width: 485px; height: 188px;">${(wls.bz)!''}</textarea>
                </td>
            </tr>
            <input type="checkbox" style="display: none" name="wls.sfzx" value="true"
                   <#if (wls.sfzx)?exists && !wls.sfzx>checked </#if>/>
        <#--  <tr>
              <td colspan="4">
                  <div id="ysgj_tool" style="height:auto;">
                      <ul class="niu">
                          <li><a href="javascript:void(0)" id="ysgj_add" plain="true">增加</a></li>
                          <li><a href="javascript:void(0)" id="ysgj_del" class="del" plain="true">删除</a></li>
                          <li><a href="javascript:void(0)" id="ysgj_cancel" class="rep" plain="true">取消</a></li>
                      </ul>
                  </div>
              </td>
          </tr>
          <tr>
              <th>运输工具：</th>
              <td colspan=3 style="margin-left: 300px;">
                  <div>
                      <table id="ysgj_grid" style="width:470px;height:185px;"
                             url="${base}/organ/ysgj/ysgjList?wlsId=${(wls.id)!''}" singleSelect="true">

                          <thead>
                          <tr>
                              <th name="ysgj.id" field="id" editor="numberbox" hidden="true">Id</th>
                              <th name="ysgj.ysgjlx.z" id="ysgj.ysgjlx"  field="ysgjlx_z" editor="{type:'combobox',options:{valueField:'z',textField:'z',editable:false,url:'${base}/base/sjzdsy/get_sjzdz?bm=ysgjlx',required:true}}" width="80" >运输工具类型</th>
                              <th name="ysgj.ysgjsbm" field="ysgjsbm" editor="{type:'validatebox',options:{required:true}}" width="100">运输工具识别码</th>
                              <th name="ysgj.gps" field="gps" editor="text" width="80" >GPS</th>
                              <th name="ysgj.xm" field="xm" editor="text" width="80">驾驶员</th>
                              <th name="ysgj.sjhm" field="sjhm" editor="text" width="105">联系号码</th>
                          </tr>
                          </thead>
                      </table>
                  </div>
              </td>
          </tr>-->
        </table>
    </form>
</div>


